import javax.swing.JApplet;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import javax.swing.JComboBox;
import javax.swing.SwingConstants;
//import jgoodies.forms.layout.FormLayout;
//import com.jgoodies.forms.layout.ColumnSpec;
//import com.jgoodies.forms.layout.RowSpec;
//import com.jgoodies.forms.factories.FormFactory;
import java.awt.GridLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JTextField;
import javax.swing.JRadioButton;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JMenuBar;
import javax.swing.JTextArea;


public class MainPlayerView extends JApplet {
	private JTextField DriverName;
	private JTextField member1;
	private JTextField member3;
	private JTextField member2;
	private JTextField member4;
	private JRadioButton mechanic;
	private JRadioButton hobo;
	private JRadioButton stockBroker;
	
	
	public MainPlayerView() {
		getContentPane().setBackground(new Color(218, 165, 32));
		resize(new Dimension(1500, 1450));
		
		JLabel lblNewLabel_1 = new JLabel("Driver Name");
		lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblNewLabel_1.setForeground(new Color(0, 0, 0));
		
		DriverName = new JTextField();
		DriverName.setColumns(10);
		
		JLabel lblChooseAProfession = new JLabel("Choose a Profession");
		lblChooseAProfession.setFont(new Font("Simplified Arabic Fixed", Font.BOLD, 12));
		
		mechanic = new JRadioButton("Mechanic");
		mechanic.setBackground(new Color(218, 165, 32));
		mechanic.setFont(new Font("Tahoma", Font.BOLD, 11));
		mechanic.setForeground(new Color(0, 0, 0));
		
		hobo = new JRadioButton("Hobo");
		hobo.setBackground(new Color(218, 165, 32));
		hobo.setFont(new Font("Tahoma", Font.BOLD, 11));
		hobo.setForeground(new Color(0, 0, 0));
		
		
		stockBroker = new JRadioButton("Stock Broker");
		stockBroker.setBackground(new Color(218, 165, 32));
		stockBroker.setFont(new Font("Tahoma", Font.BOLD, 11));
		stockBroker.setForeground(new Color(0, 0, 0));
		
		JLabel lblHasMediumAmount = new JLabel("has medium amount of cash but is the best at repairing parts. ");
		
		JLabel lblHasTheLeast = new JLabel("has the least amount of money, but has the best skills to gather food ");
		
		JLabel lblHasTheMost = new JLabel("has the most money but doesn't have any other abilities\r\n");
		
		JLabel lblThisIsGoing = new JLabel("This is going to be one heck of a journey, you'll be able to bring 4 other people with you. ");
		
		member1 = new JTextField();
		member1.setColumns(10);
		
		member3 = new JTextField();
		member3.setColumns(10);
		
		member2 = new JTextField();
		member2.setColumns(10);
		
		member4 = new JTextField();
		member4.setColumns(10);
		
		JLabel label = new JLabel("1)");
		
		JLabel label_1 = new JLabel("2)\r\n");
		
		JLabel label_2 = new JLabel("3)");
		
		JLabel label_3 = new JLabel("4)");
		
		JButton Ok = new JButton("OK");
		
		JTextArea textArea = new JTextArea();
		
		JTextArea textArea_1 = new JTextArea();
		
		JTextArea txtrThereHasBeen = new JTextArea();
		
		
		txtrThereHasBeen.setBackground(new Color(218, 165, 32));
		txtrThereHasBeen.setLineWrap(true);
		txtrThereHasBeen.setText("There has been a TV newscast that just announced that there will be a zombie apocalypse and that everyone needs to get to safety. The only area that is safe is in Russia.");
		GroupLayout groupLayout = new GroupLayout(getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(stockBroker)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(lblHasTheMost, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
							.addGap(100))
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
								.addGroup(groupLayout.createSequentialGroup()
									.addComponent(label)
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(member1, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
								.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
									.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE)
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(member2, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE)))
							.addPreferredGap(ComponentPlacement.RELATED)
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addGroup(groupLayout.createSequentialGroup()
									.addComponent(label_3)
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(member4))
								.addGroup(groupLayout.createSequentialGroup()
									.addComponent(label_2)
									.addGap(2)
									.addComponent(member3, GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE))
								.addComponent(Ok, Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE))
							.addGap(45))
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(lblNewLabel_1)
							.addGap(47)
							.addComponent(DriverName, GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE)
							.addGap(176))
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
								.addComponent(txtrThereHasBeen, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE)
								.addGroup(groupLayout.createSequentialGroup()
									.addComponent(mechanic, GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)
									.addPreferredGap(ComponentPlacement.RELATED)
									.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
										.addComponent(lblHasTheLeast, GroupLayout.PREFERRED_SIZE, 298, Short.MAX_VALUE)
										.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()
											.addComponent(lblHasMediumAmount, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
											.addGap(46)))))
							.addGap(18)
							.addComponent(textArea, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(textArea_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
						.addComponent(lblChooseAProfession)
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addComponent(hobo)
								.addComponent(lblThisIsGoing, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
							.addGap(41)))
					.addGap(0))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
							.addComponent(textArea, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addComponent(txtrThereHasBeen, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE))
						.addGroup(groupLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(textArea_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(DriverName, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblNewLabel_1))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addComponent(lblChooseAProfession)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE, false)
						.addComponent(mechanic)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(9)
							.addComponent(lblHasMediumAmount)))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(hobo)
						.addComponent(lblHasTheLeast))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblHasTheMost)
						.addComponent(stockBroker))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblThisIsGoing, GroupLayout.DEFAULT_SIZE, 16, Short.MAX_VALUE)
					.addGap(11)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(member1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(label)
						.addComponent(label_2)
						.addComponent(member3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addPreferredGap(ComponentPlacement.RELATED)
							.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
								.addComponent(member2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(label_1)))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(6)
							.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
								.addComponent(label_3)
								.addComponent(member4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))
					.addGap(7)
					.addComponent(Ok))
		);
		getContentPane().setLayout(groupLayout);
	}
	}
